﻿@{
    Layout = "~/Views/Shared/_LayoutFore.cshtml";
    ViewBag.Title = "我的邀请码";
}
<script type="text/javascript">
   
</script>

@section script{
    <script type="text/javascript">
        ;
        (function (window, undefined, $) {
            $(document).ready(function () {
                // var mid = $('#hidMid').val();
                var gridopt = {
                    url: options.listUrl,
                    colModel: [
                        { display: '邀请的会员名', name: 'Nickname', width: "5%", sortable: true, hide: false, align: 'left', iskey: true },
                        { display: '注册时间', name: 'RefTime', width: "5%", sortable: true, align: 'left' },
                        { display: '奖励类型', name: 'RewardsType', width: "5%", sortable: false, align: 'left', process: RewardsType },
                        //{ display: '发放时间', name: 'CardName', width: "8%", sortable: false, align: 'left' },
                        { display: '发放积分', name: 'RefIntegration', width: "5%", sortable: false, align: 'center' },
                        { display: '发放状态', name: 'ProvideType', width: "5%", sortable: false, align: 'center', process: ProvideType }
                    ],
                    sortname: "Id",
                    sortorder: "DESC",
                    title: false,
                    rp: 5,
                    usepager: true,
                    showcheckbox: false
                };
                var xjgrid = new xjGrid("gridlist", gridopt);

                $("#formMember").submit(function () {
                    xjgrid.Query(this);
                    return false;
                });

                function RewardsType(value, cell) {
                    if (value == 0) {
                        return "注册奖励";
                    } else {
                        return "注册奖励";
                    }
                };
                function ProvideType(value, cell) {
                    if (value == 0) {
                        return "已发放";
                    } else {
                        return "已发放";
                    }
                };
            });
        })(window, undefined, jQuery);
        var util = {};
        var options = {
            listUrl: "@Url.Action("ReferralsList", new { MemberId = ViewBag.Mid })"
        };
    </script>
}

<div class="RightContrent">

    <div style="margin-left: 50px; margin-right: 50px;">
        <div class="tab-content">
            <div class="line10"></div>
            <div class="line10"></div>
            <div class="tab_title">@ViewBag.Title</div>
            <div class="tab-content">
                <div style="width: 16px; height: 12px; float: left;">
                    <img src="~/Content/Images/leftarraw.png" />
                </div>
            </div> 
            <div class="tab-content_border">

                <div class="u-center">
                    <div class="u-form-wrap">
                        <form id="formQuery" class="form-inline" role="form">
                            @*  <input type="hidden" name="ID" value="@Model.ID"/>*@
                            <table class="form-table">
                                <tr>
                                    <td>这是你的专用邀请码  请通过QQ或者微信发送给好友</td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="input normal" id="url" name="url" readonly="readonly" value="@ViewBag.Url"/>
                                        <div class="ds-share" data-thread-key="此处请替换为当前文章的thread-key" data-title="此处请替换为分享时显示的标题" data-images="此处请替换为分享时显示的图片的链接地址" data-content="此处请替换为分享时显示的内容" data-url="此处请替换为分享时显示的链接地址">
    <div class="ds-share-inline">
      <ul  class="ds-share-icons-32">
      	
      	<li data-toggle="ds-share-icons-more"><a class="ds-more" href="javascript:void(0);">分享到：</a></li>
        <li><a class="ds-weibo" href="javascript:void(0);" data-service="weibo">微博</a></li>
        <li><a class="ds-qzone" href="javascript:void(0);" data-service="qzone">QQ空间</a></li>
        <li><a class="ds-qqt" href="javascript:void(0);" data-service="qqt">腾讯微博</a></li>
        <li><a class="ds-wechat" href="javascript:void(0);" data-service="wechat">微信</a></li>
      	
      </ul>
      <div class="ds-share-icons-more">
      </div>
    </div>
 </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>总返利300积分</td>
                                </tr>
                                <tr>
                                    <td>返利规则：</td>
                                </tr>
                                <tr>
                                    <td>1.通过发送会员专属链接，推荐好友注册成为本平台会员。</td>
                                </tr>
                                <tr>
                                    <td>2.好友通过邀请链接访问网站，并成功注册成为本站会员。</td>
                                </tr>
                                <tr>
                                    <td>3.每成功邀请一个会员注册，你获得300积分奖励，积分可以抵用金额。</td>
                                </tr>
                            </table>
                            <div id="gridlist">
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

